Optimal. Leaf size=118 \[ \frac {2 a^4 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {8 a^4 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {40 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {3238, 3791, 3769, 3771, 2641, 2639, 3768} \[ \frac {2 a^4 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {8 a^4 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {40 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3238
Rule 3768
Rule 3769
Rule 3771
Rule 3791
Rubi steps
\begin {align*} \int (a+a \cos (c+d x))^4 \sec ^{\frac {5}{2}}(c+d x) \, dx &=\int \frac {(a+a \sec (c+d x))^4}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\int \left (\frac {a^4}{\sec ^{\frac {3}{2}}(c+d x)}+\frac {4 a^4}{\sqrt {\sec (c+d x)}}+6 a^4 \sqrt {\sec (c+d x)}+4 a^4 \sec ^{\frac {3}{2}}(c+d x)+a^4 \sec ^{\frac {5}{2}}(c+d x)\right ) \, dx\\ &=a^4 \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx+a^4 \int \sec ^{\frac {5}{2}}(c+d x) \, dx+\left (4 a^4\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\left (4 a^4\right ) \int \sec ^{\frac {3}{2}}(c+d x) \, dx+\left (6 a^4\right ) \int \sqrt {\sec (c+d x)} \, dx\\ &=\frac {2 a^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {8 a^4 \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^4 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+2 \left (\frac {1}{3} a^4 \int \sqrt {\sec (c+d x)} \, dx\right )-\left (4 a^4\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\left (4 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx+\left (6 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {8 a^4 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {12 a^4 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {8 a^4 \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^4 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+2 \left (\frac {1}{3} \left (a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\right )-\left (4 a^4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {40 a^4 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a^4 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {8 a^4 \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a^4 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.34, size = 70, normalized size = 0.59 \[ \frac {a^4 \sec ^{\frac {3}{2}}(c+d x) \left (5 \sin (c+d x)+24 \sin (2 (c+d x))+\sin (3 (c+d x))+80 \cos ^{\frac {3}{2}}(c+d x) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{6 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a^{4} \cos \left (d x + c\right )^{4} + 4 \, a^{4} \cos \left (d x + c\right )^{3} + 6 \, a^{4} \cos \left (d x + c\right )^{2} + 4 \, a^{4} \cos \left (d x + c\right ) + a^{4}\right )} \sec \left (d x + c\right )^{\frac {5}{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \cos \left (d x + c\right ) + a\right )}^{4} \sec \left (d x + c\right )^{\frac {5}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.82, size = 292, normalized size = 2.47 \[ \frac {8 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, a^{4} \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+10 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-14 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+7 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{3 \left (4 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \cos \left (d x + c\right ) + a\right )}^{4} \sec \left (d x + c\right )^{\frac {5}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^4 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________